

import org.apache.spark.SparkConf;

import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;

public class fie {

    public static void main(String[] args) throws IOException {

        File file = new File("D:\\video");
        listSubFiles(file);
    }
    public static void listSubFiles(File dir) {
        //判断
        f f = new f();
        if (dir != null && dir.isDirectory()) {
            //获取dir里面内容
            File[] files = dir.listFiles();
            //files是否为空
            if (files != null) {
                //遍历
                for (File file : files) {
                    //递归调研
                    listSubFiles(file);
                }
            }
        }
        if (dir.isFile()){
        if (dir.toString().endsWith("mp4")){

            String s = dir.toString();
            boolean b = f.EncryptAndDecode("s");
            System.out.println(b);
        }
    }}


}
